package command.CeilingFan;

import command.Command;

/**
 * Created by lenovo on 2018/1/3.
 */
public class CeilingFanOffCommand implements Command {
    CeilingFan ceilingFan;
    String desc;

    public CeilingFanOffCommand(CeilingFan ceilingFan) {
        this.ceilingFan = ceilingFan;
    }

    public CeilingFanOffCommand(String desc) {
        this.desc = desc;
    }

    @Override
    public void execute() {
        ceilingFan.off();

    }

    @Override
    public void undo() {

    }
}
